<?php echo $html->css('default',NULL,array(),false) ?>
<?php echo $html->css('form_style',NULL,array(),false) ?>
<div id="columnA">
    <h3>Editar Rotaciones de Cultivos</h3>
    <?php
    echo 'Los campos marcados con (*) son obligatorios.<br /><br />';
    echo $form->create('Rotacion',array('action'=>'editar/'.$form->value('Rotacion.id')));
    echo $form->hidden('Rotacion.id');
    echo $form->hidden('Rotacion.revision_id');
        ?>
    <table>
        <thead>
            <tr>
                <th>A&ntilde;o 1</th>
                <th>A&ntilde;o 2</th>
                <th>A&ntilde;o 3</th>
                <th>A&ntilde;o 4</th>
                <th>A&ntilde;o 5</th>
            </tr>
        </thead>
        <tbody>
            <?php
            echo '<td>'.$form->input('Rotacion.ano0',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano1',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano2',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano3',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano4',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            ?>
        </tbody>
    </table>
    <br/>
    <table>
        <thead>
            <tr>
                <th>A&ntilde;o 6</th>
                <th>A&ntilde;o 7</th>
                <th>A&ntilde;o 8</th>
                <th>A&ntilde;o 9</th>
                <th>A&ntilde;o 10</th>
            </tr>
        </thead>
        <tbody>
            <?php
            echo '<td>'.$form->input('Rotacion.ano5',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano6',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano7',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano8',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            echo '<td>'.$form->input('Rotacion.ano9',array('label'=>'','div'=>false,'class'=>'inputstyle input110','type'=>'select','empty'=>'','options'=>$productos)).'</td>';
            ?>
        </tbody>
    </table>
    <?php
    echo '<div class="form_row">';
    echo $form->input('Rotacion.porc_graminidas',array('label'=>'&#37; Graminidas: ','div'=>false,'class'=>'inputstyle input60'));
    echo $form->input('Rotacion.porc_oleaginosas',array('label'=>'&#37; Oleaginosas: ','div'=>false,'class'=>'inputstyle input60'));
    echo $form->input('Rotacion.porc_pasturas',array('label'=>'&#37; Pasturas: ','div'=>false,'class'=>'inputstyle input60'));
    echo $form->input('Rotacion.porc_otras',array('label'=>'&#37; Otras: ','div'=>false,'class'=>'inputstyle input60'));
    echo '</div>';
    echo '<br />';
    echo $form->button('Cancelar',array('onclick'=>'javascript:window.location="/sistemaagricola/revisiones/ver/'.$form->value('Rotacion.revision_id').'"'));
    echo $form->submit('Guardar',array('div'=>false));
    echo $form->end();
    ?>
</div>